package com.cencus.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("record")
public class Record {
    @TableId(type = IdType.AUTO)
    @TableField(value = "record_id")
    private int recordId;
    @TableField(value = "user_id")
    private int userId;
    private String content;
    private String title;
    @TableField(value = "created_at")
    private LocalDateTime createdAt;
    @TableField(value = "updated_at")
    private LocalDateTime updatedAt;
    @TableField(value = "is_active",select = false)
    private boolean isActive;
    @TableField(exist = false)  // 表示该字段不在数据库表中存在
    private List<Tag> tags;
}
